import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import {ResultJson} from '../core/entity/result-json';
import {BaseService} from '../core/service/base.service';

@Injectable()
export class MenuService {
  private baseUrl: String;
  constructor(private baseService: BaseService) {
  }
  getMenu(): Observable<ResultJson> {
    const url = '/as/resourceApi/loadMenuList';
    return this.baseService.get({url: url, params: {}});
  }
}
